﻿using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace GermaneShanidze.Applications.Jokeri.LobbyWcfService
{
    [ServiceContract]
    public interface ILobbyUserService
    {
        [OperationContract]
        ObservableCollection<FacebookUserInfo> GetActiveUsers(FacebookUserInfo facebookUserInfo);
    }

    [DataContract]
    public class FacebookUserInfo
    {
        long userId;
        string firstName;
        string lastName;
        string profilePictureUrl;

        [DataMember]
        public long UserId
        {
            get { return userId; }
            set { userId = value; }
        }

        [DataMember]
        public string FirstName
        {
            get { return firstName; }
            set { firstName = value; }
        }

        [DataMember]
        public string LastName
        {
            get { return lastName; }
            set { lastName = value; }
        }

        [DataMember]
        public string ProfilePictureUrl
        {
            get { return profilePictureUrl; }
            set { profilePictureUrl = value; }
        }
    }
}
